<%--
  Created by IntelliJ IDEA.
  User: xin
  Date: 2024/9/20
  Time: 上午9:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" import="java.util.*" %>
<html>
<head>
    <title>留言板</title>
    <meta charset="UTF-8">
    <style>
        body {background: rgba(38,38,38,1)}
        div {width: 800px;border: 1px solid rgba(100,90,87,1);color:white}
        span{font-size: 20px;font-weight: bold;}
        .span0{color:red;font-size: 25px}
        .span1{color:green;}
        .span2{color:orange;}
        .span3{color:green;}
        .span4{color:red;}
    </style>
</head>
<body>
<div>
    <%
        Object o=application.getAttribute("message");
        if(o!=null) {
            out.pront("暂时还没有留言呐");
        }else{
            Vector<String>v=(Vector<String>)o;
            for(int i=v.size()-1;i>=0;i--) {
                StringTokenizer st=new StringTokenizer(v.get(i),",");
                while (st.hasMoreElements()){
                    out.pront(st.nextToken()+"<br>");
                }
            }
        }
    %>
</div>
</body>
</html>
